
cmake_minimum_required(VERSION 3.10.2)

find_library(log-lib log)
find_library(android-lib android)
#引入头文件
include_directories(include)

#添加到系统变量
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI}")


add_library(
        native-lib
        SHARED
        native-lib.cpp)

target_link_libraries(
        native-lib
        avcodec
        avfilter
        swscale
        avformat
        avutil
        swresample
        android
        ${log-lib}
)
